using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ParcelTools
{
    /// <summary>
    /// <para>Append Parcels</para>
    /// <para>Appends parcels from an input parcel fabric to a target parcel fabric. If the input parcel fabric is a parcel fabric layer with selected polygons, the corresponding parcel features will be appended.</para>
    /// <para>将宗地从输入宗地结构追加到目标宗地结构。如果输入宗地结构是具有所选面的宗地结构图层，则将追加相应的宗地要素。</para>
    /// </summary>    
    [DisplayName("Append Parcels")]
    public class AppendParcels : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AppendParcels()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_parcel_fabric">
        /// <para>Input Parcel Fabric</para>
        /// <para>The input parcels that will be appended to the target parcel fabric. The input parcel fabric can be from a file geodatabase, an enterprise geodatabase, or a feature service.</para>
        /// <para>将追加到目标宗地结构的输入宗地。输入宗地结构可以来自文件地理数据库、企业级地理数据库或要素服务。</para>
        /// </param>
        /// <param name="_target_parcel_fabric">
        /// <para>Target Parcel Fabric</para>
        /// <para>The target parcel fabric to which the parcels will be appended. The target parcel fabric can be from a file geodatabase or an enterprise geodatabase.</para>
        /// <para>将包裹追加到的目标宗地结构。目标宗地结构可以来自文件地理数据库或企业级地理数据库。</para>
        /// </param>
        public AppendParcels(object _in_parcel_fabric, object _target_parcel_fabric)
        {
            this._in_parcel_fabric = _in_parcel_fabric;
            this._target_parcel_fabric = _target_parcel_fabric;
        }
        public override string ToolboxName => "Parcel Tools";

        public override string ToolName => "Append Parcels";

        public override string CallName => "parcel.AppendParcels";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_parcel_fabric, _target_parcel_fabric, _updated_parcel_fabric];

        /// <summary>
        /// <para>Input Parcel Fabric</para>
        /// <para>The input parcels that will be appended to the target parcel fabric. The input parcel fabric can be from a file geodatabase, an enterprise geodatabase, or a feature service.</para>
        /// <para>将追加到目标宗地结构的输入宗地。输入宗地结构可以来自文件地理数据库、企业级地理数据库或要素服务。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Parcel Fabric")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_parcel_fabric { get; set; }


        /// <summary>
        /// <para>Target Parcel Fabric</para>
        /// <para>The target parcel fabric to which the parcels will be appended. The target parcel fabric can be from a file geodatabase or an enterprise geodatabase.</para>
        /// <para>将包裹追加到的目标宗地结构。目标宗地结构可以来自文件地理数据库或企业级地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Parcel Fabric")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_parcel_fabric { get; set; }


        /// <summary>
        /// <para>Updated Parcel Fabric</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Parcel Fabric")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_parcel_fabric { get; set; }


        public AppendParcels SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}